package com.lsq.lwf.common.xmlparse.base;

import java.io.File;
import java.lang.reflect.Method;
import java.util.HashMap;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.io.SAXReader;

public class BaseXml {

	protected static HashMap<String, HashMap<String, String>> sqlNamespaceMap;
	protected static HashMap<String, HashMap<String, String>> ormNamespaceMap;
	protected static HashMap<String, HashMap<String, Method>> viewNamespaceMap;

	protected static HashMap<String, String> sqlMap;
	protected static HashMap<String, String> ormMap;
	protected static HashMap<String, String> resultMap;
	protected static HashMap<String, Method> viewMap;

	static {
		sqlMap = new HashMap<String, String>();
		ormMap = new HashMap<String, String>();
		viewMap = new HashMap<String, Method>();
		resultMap = new HashMap<String, String>();
		sqlNamespaceMap = new HashMap<String, HashMap<String, String>>();
		ormNamespaceMap = new HashMap<String, HashMap<String, String>>();
		viewNamespaceMap = new HashMap<String, HashMap<String, Method>>();

	}

	private SAXReader reader = null;
	protected Document doc = null;

	public BaseXml(File file) {
		reader = new SAXReader();
		try {
			doc = reader.read(file);
		} catch (DocumentException e) {
			e.printStackTrace();
		}
	}
	public BaseXml(){
		
	}
}
